package controllers

import (
	"bestcore/base"
	"bestcore/common/response"

	"github.com/gofiber/fiber/v2"
)

func init() {
	Controllers = append(Controllers, new(PingController))
}

type PingController struct{ base.BaseController }

func (controller *PingController) Install(app *fiber.App) {
	app.Get("/ping", controller.Ping)
}

func (controller *PingController) Ping(c *fiber.Ctx) error {
	return response.Success(c, "ping success")
}
